<h1>日期格式化</h1>
<script src="./utils.js"></script>
<script>
    alert(dateDiff('2021-11-29 11:50:00'));
</script>
<br>
<h1>判断是否是微信浏览器</h1>
<script src="./utils.js"></script>
<script>
    is_weixn()
</script>
<br>
<h1>pc还是移动端</h1>
<script src="./utils.js"></script>
<script>
    ISM()
</script>
<br>
<h1>浏览器内核</h1>
<script src="./utils.js"></script>
<script>
    getRE()
</script>



<h1>图片懒加载</h1>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/1.jpg" alt=""><br>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/2.jpg" alt=""><br>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/3.jpg" alt=""><br>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/4.jpg" alt=""><br>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/5.jpg" alt=""><br>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/6.jpg" alt=""><br>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/7.jpg" alt=""><br>
<img src="https://kg.zhaodashen.cn/web/images/loading4.gif" height="350" src-real="./imgs/8.jpg" alt="">
<script src="./lazyload.js"></script>
<script>
    lazyload()
    window.onload = lazyload
</script>


<h1>JSON数据格式转为js对象</h1>
<script src="./JSON.js"></script>
<script>
    console.log(parse('{ "a": "1", "b": "2" }'))
</script>

<h1>js对象转为JSON数据格式</h1>
<script src="./JSON.js"></script>
<script>
    console.log(stringify({
        a: 1,
        b: 2
    }))
</script>